package analyser;

import javax.annotation.Resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import collector.Collector;
import collector.CollectorFactory;
@Service
public class ClustorAnalyser implements Analyser{
	//@Autowired
	//@Qualifier(value="uc")
	@Resource(name="uc")
	private Collector collector;
	
	public void setCollector(Collector collector) {
		this.collector = collector;
	}

	public void analyse() {
		collector.collect();
		System.out.println("clustor analysing...");
	}

}
